gtk4.git
10 years agotreeview: Don't underallocate editing widgets that are too big
Benjamin Otte [Mon, 20 Jul 2015 02:20:50 +0000 (04:20 +0200)]
treeview: Don't underallocate editing widgets that are too big

10 years agocombobox: Unconditionally draw background and border
Benjamin Otte [Sun, 19 Jul 2015 16:35:33 +0000 (18:35 +0200)]
combobox: Unconditionally draw background and border

10 years agocombobox: Remove autoscroll timer on popdown
Benjamin Otte [Sun, 19 Jul 2015 16:31:33 +0000 (18:31 +0200)]
combobox: Remove autoscroll timer on popdown

10 years agocombobox: Remove cell_view_frame
Benjamin Otte [Sun, 19 Jul 2015 03:42:39 +0000 (05:42 +0200)]
combobox: Remove cell_view_frame

Cell views can draw their own frames now.

10 years agocellview: Implement border and background drawing
Benjamin Otte [Sun, 19 Jul 2015 03:23:11 +0000 (05:23 +0200)]
cellview: Implement border and background drawing

10 years agogtkimagemenuitem: improve the replacement docs even more
Stefan Sauer [Mon, 20 Jul 2015 19:02:39 +0000 (21:02 +0200)]
gtkimagemenuitem: improve the replacement docs even more

Since the stock strings usually have menmosics suggest
gtk_menu_item_new_with_mnemonic().

10 years agooffscreen_window: Remove deprecated API calls
Timm Bäder [Mon, 20 Jul 2015 15:04:25 +0000 (17:04 +0200)]
offscreen_window: Remove deprecated API calls

10 years agogtkimagemenuitem: fix suggestion for replacement
Stefan Sauer [Mon, 20 Jul 2015 18:54:52 +0000 (20:54 +0200)]
gtkimagemenuitem: fix suggestion for replacement

gtk_menu_item_new(9 would create an empty menu item. While the stock deprecation
aims to unclutter the menus, I feel this goes too far.

10 years agodrawingarea: use same background approach as GtkLayout
Cosimo Cecchi [Mon, 20 Jul 2015 15:21:43 +0000 (08:21 -0700)]
drawingarea: use same background approach as GtkLayout

Call gtk_style_context_set_background() every time the style is updated
and add a comment as to why we still need to do it here.

https://bugzilla.gnome.org/show_bug.cgi?id=752599

10 years agoRevert "drawingarea: don't call gtk_style_context_set_background()"
Cosimo Cecchi [Mon, 20 Jul 2015 15:13:35 +0000 (08:13 -0700)]
Revert "drawingarea: don't call gtk_style_context_set_background()"

This reverts commit 6786c9d724ad57ea30e169d2afcb4a314b2e56bb.

https://bugzilla.gnome.org/show_bug.cgi?id=752599

10 years agoRevert "drawingarea: checks parent's draw() before call it"
Cosimo Cecchi [Mon, 20 Jul 2015 15:13:24 +0000 (08:13 -0700)]
Revert "drawingarea: checks parent's draw() before call it"

This reverts commit b3166b745f41a901171821ccc9f0c69b9cc35e70.

https://bugzilla.gnome.org/show_bug.cgi?id=752599

10 years agofile chooser: Memory handling fixes
Matthias Clasen [Mon, 20 Jul 2015 15:11:00 +0000 (11:11 -0400)]
file chooser: Memory handling fixes

I forgot to clean up the long press gesture, and in additon, creating
the rename popover from the ui template was causing the tree view
to not be disposed when the file chooser goes away. Work around this
by manually unsetting the relative-to widget of the popover in dispose.

10 years agoFix return value error in gtk_stack_get_interpolate_size
Ting-Wei Lan [Mon, 20 Jul 2015 13:55:40 +0000 (21:55 +0800)]
Fix return value error in gtk_stack_get_interpolate_size

10 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 20 Jul 2015 10:00:21 +0000 (12:00 +0200)]
Updated Spanish translation

10 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 20 Jul 2015 10:00:01 +0000 (12:00 +0200)]
Updated Spanish translation

10 years agowayland: Always apply scaling factor to cursor hotspot and dimension
Jonas Ådahl [Mon, 20 Jul 2015 08:01:32 +0000 (16:01 +0800)]
wayland: Always apply scaling factor to cursor hotspot and dimension

Prior to this patch, the hotspot would be passed in buffer coordinate
space. Where this were ever tested, i.e. in a patched mutter, the
server interpreted them incorrectly, which meant it went undiscovered.
In the updated mutter patches the incorrect behavior in GTK+ was
discovered due to the behavior in mutter was corrected.

In the themed cursor case, the dimensions were not correctly scaled
either, but this had no negative visible effect because the dimension is
only used for reporting damage tracking, and passing a bigger damage
region than surface has no negative visible effects.

https://bugzilla.gnome.org/show_bug.cgi?id=752616

10 years agoGtkPopover: Set interpolate-size on the stack...
Timm Bäder [Sun, 19 Jul 2015 15:40:28 +0000 (17:40 +0200)]
GtkPopover: Set interpolate-size on the stack...

... in gtk_popover_bind_model
and gtk_popover_menu_init

10 years agoGtkStack: Add interpolate-size property
Timm Bäder [Sun, 19 Jul 2015 15:39:41 +0000 (17:39 +0200)]
GtkStack: Add interpolate-size property

And use it to determine whether we should actually interpolate between
stack sizes or not.

10 years agoGtkListBox: Improve focus scrolling
Matthias Clasen [Mon, 20 Jul 2015 02:18:58 +0000 (22:18 -0400)]
GtkListBox: Improve focus scrolling

We are trying to scroll the header in view together with the
focus row. The way this is implemented works fine when scrolling
up, but falls short when scrolling down. Fix this by making sure
that both the row and the header bar visible.

10 years agoGtkListBox: Listen for adjustment changes
Matthias Clasen [Mon, 20 Jul 2015 02:08:36 +0000 (22:08 -0400)]
GtkListBox: Listen for adjustment changes

We automatically pick up an adjustment from our parent
scrollable, but we failed to update it when it changes.
This is happening in the places sidebar, and it was causing
the focus-tracking to fail there, letting the focus move
out of view. With this change, the focus remains visible.

10 years agoplaces sidebar: Improve keynav
Matthias Clasen [Mon, 20 Jul 2015 02:07:21 +0000 (22:07 -0400)]
places sidebar: Improve keynav

Remove the code in the sidebar keypress handler that imperfectly
reproduces what GtkListBox already does: moving selection and
focus in response to arrow keys.

10 years agotrivial: Some reformatting
Matthias Clasen [Sun, 19 Jul 2015 21:39:23 +0000 (17:39 -0400)]
trivial: Some reformatting

10 years agoplaces sidebar: Remove pointless code
Matthias Clasen [Sun, 19 Jul 2015 21:37:39 +0000 (17:37 -0400)]
places sidebar: Remove pointless code

No need to set or unset adjustments explicitly.

10 years agospin button: Add Home and End as key bindings
Matthias Clasen [Sun, 19 Jul 2015 21:17:53 +0000 (17:17 -0400)]
spin button: Add Home and End as key bindings

Make these go to the lower/upper boundary of the adjustment, like
Ctrl-PageUp/PageDown already do.
https://bugzilla.gnome.org/show_bug.cgi?id=309300

10 years agoGtkWidget: Add custom font map support
Matthias Clasen [Mon, 6 Jul 2015 04:33:47 +0000 (00:33 -0400)]
GtkWidget: Add custom font map support

This allows to use a custom font map for parts of the widget
hierarchy - this can be used for application-specific fonts.

https://bugzilla.gnome.org/show_bug.cgi?id=751812

10 years agofont chooser: Add placeholder text to preview entry
Matthias Clasen [Sun, 19 Jul 2015 20:52:03 +0000 (16:52 -0400)]
font chooser: Add placeholder text to preview entry

This will make things more understandable if an application
sets an empty preview text.
https://bugzilla.gnome.org/show_bug.cgi?id=725551

10 years agoGdkGLContext little fix to property names and descriptions.
Daniel Hams [Thu, 16 Jul 2015 16:22:07 +0000 (17:22 +0100)]
GdkGLContext little fix to property names and descriptions.

https://bugzilla.gnome.org/show_bug.cgi?id=752502

10 years agoUpdates for 3.17.5
Matthias Clasen [Sun, 19 Jul 2015 18:04:47 +0000 (14:04 -0400)]
Updates for 3.17.5

10 years agobuilder-tool: Don't strip border-width
Matthias Clasen [Sun, 19 Jul 2015 17:18:30 +0000 (13:18 -0400)]
builder-tool: Don't strip border-width

Strictly speaking, this would only have to be special-cased inside
GtkDialog, but lets just skip it altogether.

10 years agoFix csd decorations
Matthias Clasen [Sun, 19 Jul 2015 13:59:18 +0000 (09:59 -0400)]
Fix csd decorations

By accident, commit b9b17c3c2a434983452561c3 removed one line
that wasn't unused, but important for hiding close buttons on
dialogs. Bring it back.

10 years agoUpdated Hebrew translation
Yosef Or Boczko [Sun, 19 Jul 2015 07:59:19 +0000 (10:59 +0300)]
Updated Hebrew translation

10 years agowindow: Set the type hint when it changes, not just on map()
Benjamin Otte [Sun, 19 Jul 2015 02:44:17 +0000 (04:44 +0200)]
window: Set the type hint when it changes, not just on map()

There is no reason to wait until map() to reset a type hint on the GDK
window. Just set it when it changes.

10 years agowindow: g_object_notify() on type-hint change
Benjamin Otte [Sun, 19 Jul 2015 02:40:36 +0000 (04:40 +0200)]
window: g_object_notify() on type-hint change

10 years agowindow: Don't update type hint when it didn't change
Benjamin Otte [Sun, 19 Jul 2015 02:39:06 +0000 (04:39 +0200)]
window: Don't update type hint when it didn't change

10 years agowindow: Allow setting type hint on mapped windows
Benjamin Otte [Sun, 19 Jul 2015 02:37:47 +0000 (04:37 +0200)]
window: Allow setting type hint on mapped windows

10 years agowindow: Don't keep 2 type hints
Benjamin Otte [Sun, 19 Jul 2015 02:32:48 +0000 (04:32 +0200)]
window: Don't keep 2 type hints

1. This confuses the code as it's using the old type hint with the new
type hint on GDK window creation

2. It only existed as a workaround for old code that directly accessed
window->type_hint which hasn't been possible since 3.0.

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sat, 18 Jul 2015 10:24:02 +0000 (10:24 +0000)]
Updated Portuguese translation

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sat, 18 Jul 2015 10:19:20 +0000 (10:19 +0000)]
Updated Portuguese translation

10 years agoUpdated Czech translation
Marek Černocký [Sat, 18 Jul 2015 07:42:25 +0000 (09:42 +0200)]
Updated Czech translation

10 years agocombobox: Simplify code
Benjamin Otte [Sat, 18 Jul 2015 03:39:01 +0000 (05:39 +0200)]
combobox: Simplify code

We don't add new children to the child's parent, we add them to ourself.
Because guess who a child's parent is?

10 years agocombobox: Remove unused header function functionality
Benjamin Otte [Sat, 18 Jul 2015 03:16:07 +0000 (05:16 +0200)]
combobox: Remove unused header function functionality

10 years agocombobox: Remove unused argument from private function
Benjamin Otte [Sat, 18 Jul 2015 03:10:39 +0000 (05:10 +0200)]
combobox: Remove unused argument from private function

10 years agoFix the build
Matthias Clasen [Sat, 18 Jul 2015 00:45:28 +0000 (20:45 -0400)]
Fix the build

10 years agoRevert "GtkGrid: Add a few NULL checks"
Matthias Clasen [Sat, 18 Jul 2015 00:18:34 +0000 (20:18 -0400)]
Revert "GtkGrid: Add a few NULL checks"

This reverts commit e215db6da21fc7c54f49b247afabc06a18d60513.

We are actually requiring non-NULL out arguments here now.

10 years agotestgtk: Remove pointless code
Matthias Clasen [Fri, 17 Jul 2015 23:54:09 +0000 (19:54 -0400)]
testgtk: Remove pointless code

The display is getting overwritten immediately. Pointed out by
coverity.

10 years agoinspector: Avoid a NULL deref
Matthias Clasen [Fri, 17 Jul 2015 23:52:52 +0000 (19:52 -0400)]
inspector: Avoid a NULL deref

Coverity pointed out that getting a class name requires
dereferencing the pointer, so only don't do it if it is NULL.

10 years agoGtkWindow: Fix a use-after-free
Matthias Clasen [Fri, 17 Jul 2015 23:19:24 +0000 (19:19 -0400)]
GtkWindow: Fix a use-after-free

We were printing a string in a warning after freeing it.
Also, fix an x/y typo that might cause popovers to be
mispositioned.

10 years agofile chooser: remove an unused GError variable
Matthias Clasen [Fri, 17 Jul 2015 23:19:03 +0000 (19:19 -0400)]
file chooser: remove an unused GError variable

Pointed out by coverity

10 years agoinspector: Remove some dead code
Matthias Clasen [Fri, 17 Jul 2015 22:47:39 +0000 (18:47 -0400)]
inspector: Remove some dead code

Not sure what I was thinking here. Coverity pointed this out.

10 years agoinspector: Avoid a NULL deref
Matthias Clasen [Fri, 17 Jul 2015 22:42:24 +0000 (18:42 -0400)]
inspector: Avoid a NULL deref

10 years agotreeview: Add an explicit return for clarity
Matthias Clasen [Fri, 17 Jul 2015 22:41:14 +0000 (18:41 -0400)]
treeview: Add an explicit return for clarity

I believe that first_column can only ever be NULL here if
last_column is NULL too, in which case we'd exited already.
But coverity doesn't see that, so add an explicit exit.

10 years agotooltip: Remove unnecessary checks
Matthias Clasen [Fri, 17 Jul 2015 22:40:37 +0000 (18:40 -0400)]
tooltip: Remove unnecessary checks

Coverity uses these as clues to complain.

10 years agolist box: Remove unnecessary checks
Matthias Clasen [Fri, 17 Jul 2015 22:40:11 +0000 (18:40 -0400)]
list box: Remove unnecessary checks

Again, coverity takes these as clues to complain.

10 years agoGtkLabel: Remove an unnecessary check
Matthias Clasen [Fri, 17 Jul 2015 22:39:14 +0000 (18:39 -0400)]
GtkLabel: Remove an unnecessary check

Coverity has the annoying habit of guessing backwards that
if we check the value here, it might be NULL earlier.

10 years agoGtkGrid: Add a few NULL checks
Matthias Clasen [Fri, 17 Jul 2015 22:38:30 +0000 (18:38 -0400)]
GtkGrid: Add a few NULL checks

Coverity complained about these.

10 years agoGtkActionHelper: Avoid null deref in debug code
Matthias Clasen [Fri, 17 Jul 2015 22:38:01 +0000 (18:38 -0400)]
GtkActionHelper: Avoid null deref in debug code

10 years agogdk: Add some parameter checking
Matthias Clasen [Fri, 17 Jul 2015 22:37:20 +0000 (18:37 -0400)]
gdk: Add some parameter checking

This may help coverity recognize that we're not called with
invalid combinations.

10 years agotestdialog: Error out if templates are missing
Matthias Clasen [Fri, 17 Jul 2015 19:59:23 +0000 (15:59 -0400)]
testdialog: Error out if templates are missing

Coverity complained about us ignoring the return value
here, and it is nicer to get an error message about this.

10 years agocups: Annotate a call whose return value we don't care about
Matthias Clasen [Fri, 17 Jul 2015 19:58:24 +0000 (15:58 -0400)]
cups: Annotate a call whose return value we don't care about

We're closing this fd, but we're not going to do anything else
if that fails. Annotate to let coverity see this.

10 years agoinspector: Check a return value
Matthias Clasen [Fri, 17 Jul 2015 19:56:34 +0000 (15:56 -0400)]
inspector: Check a return value

We don't care about the error here, but we were relying on
g_resources_get_info to zero the size even in case of error.
No need to do that, we can just check the return value. Plus,
it makes coverity happy.

10 years agoinspector: Annotate a call whose return value we don't need
Matthias Clasen [Fri, 17 Jul 2015 19:55:18 +0000 (15:55 -0400)]
inspector: Annotate a call whose return value we don't need

The way this code is written, we know that there is an item in
the hash table and the iter_next call will give it to us, so
no need to check the return value. Annotate the call to tell
coverity.

10 years agogtkicontheme: Check a return value
Matthias Clasen [Fri, 17 Jul 2015 19:54:40 +0000 (15:54 -0400)]
gtkicontheme: Check a return value

We were already looking at the error anyway, but rewriting things
this way lets coverity see the light.

10 years agogtkbuilderparser: Add some assertions
Matthias Clasen [Fri, 17 Jul 2015 19:52:22 +0000 (15:52 -0400)]
gtkbuilderparser: Add some assertions

Add some assertions that things are non-NULL when we know they
are, so that coverity gets it.

10 years agogtk-demo: Check a return value
Matthias Clasen [Fri, 17 Jul 2015 19:51:05 +0000 (15:51 -0400)]
gtk-demo: Check a return value

Found by coverity.

10 years agocss: Fix GtkCssChange enum
Benjamin Otte [Fri, 17 Jul 2015 20:06:16 +0000 (22:06 +0200)]
css: Fix GtkCssChange enum

Previously, the (1<<31) value evaluated to the 64bit value
  0xFFFFFFFF80000000
instead of
  0x0000000080000000
Avoid this by explicitly casting the value to unsigned long long.

Also cast all values to unsigned long long to achieve consistency
and hopefully in the future get new values added the same way.

10 years agoheaderbar: Switch css positions on direction change
Benjamin Otte [Fri, 17 Jul 2015 15:50:25 +0000 (17:50 +0200)]
headerbar: Switch css positions on direction change

10 years agoUpdated Hungarian translation
Balázs Úr [Fri, 17 Jul 2015 14:25:22 +0000 (14:25 +0000)]
Updated Hungarian translation

10 years agofile chooser: Improve popover positioning
Matthias Clasen [Fri, 17 Jul 2015 12:56:06 +0000 (08:56 -0400)]
file chooser: Improve popover positioning

We keep the popover vertically tied to the selected row, but pick
up the horizontal position from the click / touch.

10 years agoplaces sidebar: Preserve ::populate-popup functionality
Matthias Clasen [Thu, 16 Jul 2015 23:27:01 +0000 (19:27 -0400)]
places sidebar: Preserve ::populate-popup functionality

We "fix" this signal the same way we did for GtkEntry and
GtkTextView: slightly change the signature so that the passed
widget may be a container other than a GtkMenu, and add a
property to explicitly opt in to receiving the signal in
this case.

10 years agofile chooser: Use a popover for the context menu
Matthias Clasen [Thu, 16 Jul 2015 14:45:14 +0000 (10:45 -0400)]
file chooser: Use a popover for the context menu

Use a popover for the context menu, and add a long press gesture
to allow opening it with touch.

10 years agoplaces sidebar: Use a popover for the context menu
Matthias Clasen [Thu, 16 Jul 2015 01:25:10 +0000 (21:25 -0400)]
places sidebar: Use a popover for the context menu

Use a popover for the context menu, and add a long press gesture
to allow opening it with touch.

10 years agogdk: fix crash if visual is NULL
Ignacio Casal Quinteiro [Fri, 17 Jul 2015 07:31:32 +0000 (09:31 +0200)]
gdk: fix crash if visual is NULL

cairo_xlib_surface_get_visual might return NULL so we need to
check for NULL before trying to use it.

https://bugzilla.gnome.org/show_bug.cgi?id=752520

10 years agoinspector: Avoid a gratitious use of g_strv_length
Matthias Clasen [Fri, 17 Jul 2015 03:42:55 +0000 (23:42 -0400)]
inspector: Avoid a gratitious use of g_strv_length

No need to count the strings first before iterating over them.

10 years agofile chooser: Make bindings work in save entry
Matthias Clasen [Fri, 17 Jul 2015 03:36:51 +0000 (23:36 -0400)]
file chooser: Make bindings work in save entry

With the name entry being in the header bar now, we no longer
get bindings working by just letting the key event bubble up,
we have to explicitly apply them on key events that the save
entry is not handling.

10 years agoGtkFileChooserButton: Don't update icon/label so often
Timm Bäder [Thu, 16 Jul 2015 19:47:13 +0000 (21:47 +0200)]
GtkFileChooserButton: Don't update icon/label so often

They were updated in style-changed, causing the label to get set to
(None), then to the actual file name again a frame later, both of the
updates cause the GtkFileChooserButton to resize, possibly to the
minimal width, causing the layout to jump. Fix this by only updating
icon/label in style-updated when the icon theme actually changed, which
is the only case we care about here.

https://bugzilla.gnome.org/show_bug.cgi?id=752509

10 years agogtkprintunixdialog: Set border_width to 0
Timm Bäder [Thu, 16 Jul 2015 16:37:13 +0000 (18:37 +0200)]
gtkprintunixdialog: Set border_width to 0

10 years agoAvoid O(n²) walking of string arrays
Emmanuele Bassi [Thu, 16 Jul 2015 15:12:35 +0000 (16:12 +0100)]
Avoid O(n²) walking of string arrays

"Yo, we heard you like traversing NULL-terminated arrays to operate on
them, so we called g_strv_length() as the for condition, so you can
iterate the array while iterating the array."

Instead of making famed rapper and television producer Xzibit proud, we
should avoid calling g_strv_length() on an array while looping on the
array, to avoid quadratic complexity.

We do this in various places that deal with arrays of strings that we
cannot really guess are short enough not to matter — e.g. the list of
CSS selectors in the inspector, or the required authentication
information for printing.

10 years agoplacessidebar: show persistent drives when not showing Other Locations
Georges Basile Stavracas Neto [Thu, 16 Jul 2015 13:28:19 +0000 (10:28 -0300)]
placessidebar: show persistent drives when not showing Other Locations

Previous commits changes the behavior of GtkPlacesSidebar, as it stops
handling persistent devices and only manages mounted networks, XDG
directories and bookmarks.

By radically breaking the previous behavior, we may have trouble
since we provide no alternatives to that besides the private widget
GtkPlacesView.

Fix that by showing the persistent devices when not showing Other
Locations item.

10 years agotests/gears: Ensure we don't use unavailable GL resources
Emmanuele Bassi [Thu, 16 Jul 2015 13:53:42 +0000 (14:53 +0100)]
tests/gears: Ensure we don't use unavailable GL resources

We need to check on realize if we have access to a GL context, before
calling GL functions. We use gtk_gl_area_get_error() for that.

We also need to tear down the resources during unrealization, instead
of leaking them.

10 years agoplacessidebar: fix Connect to Server position
Georges Basile Stavracas Neto [Thu, 16 Jul 2015 12:37:56 +0000 (09:37 -0300)]
placessidebar: fix Connect to Server position

Commit 7db399d975b8f9626c21761dde5f2d5feeb6e305 introduces
the Other Locations item, as well as some behavioral changes
to GtkPlacesSidebar. It, howevers, wrongly changes the section
of code that handles the Connect to Server item, with various
side effects depending on the environment setup.

Fix that by adding the Connect to Server at the right section
of code.

10 years agoUpdated Hebrew po-properties translation
Yosef Or Boczko [Thu, 16 Jul 2015 09:59:49 +0000 (12:59 +0300)]
Updated Hebrew po-properties translation

10 years agoUpdated Hebrew translation
Yosef Or Boczko [Thu, 16 Jul 2015 09:54:42 +0000 (12:54 +0300)]
Updated Hebrew translation

10 years agoUpdated Hebrew translation
Yosef Or Boczko [Thu, 16 Jul 2015 09:44:56 +0000 (12:44 +0300)]
Updated Hebrew translation

10 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 16 Jul 2015 08:41:16 +0000 (10:41 +0200)]
Updated Spanish translation

10 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 16 Jul 2015 08:40:58 +0000 (10:40 +0200)]
Updated Spanish translation

10 years agoUpdated POTFILES.in and POTFILES.skip
Piotr Drąg [Thu, 16 Jul 2015 04:49:33 +0000 (06:49 +0200)]
Updated POTFILES.in and POTFILES.skip

10 years agotests: Remove testplacesview test
Benjamin Otte [Thu, 16 Jul 2015 04:37:37 +0000 (06:37 +0200)]
tests: Remove testplacesview test

The GtkPlacesView widget was made private, so we can't create it in a
testcase.

10 years agotests: Fix gcc complaints about testfilechooser
Benjamin Otte [Thu, 16 Jul 2015 04:25:46 +0000 (06:25 +0200)]
tests: Fix gcc complaints about testfilechooser

10 years agoheaderbar: Get rid of get_path_for_child()
Benjamin Otte [Thu, 16 Jul 2015 01:22:40 +0000 (03:22 +0200)]
headerbar: Get rid of get_path_for_child()

Instead, reorder CSS nodes.

10 years agoheaderbar: Finish widget setup before showing it.
Benjamin Otte [Tue, 14 Jul 2015 23:51:01 +0000 (01:51 +0200)]
headerbar: Finish widget setup before showing it.

10 years agoheaderbar: forall() the button boxes in the right order
Benjamin Otte [Tue, 14 Jul 2015 20:27:13 +0000 (22:27 +0200)]
headerbar: forall() the button boxes in the right order

10 years agoheaderbar: Remove unused variables in private struct
Benjamin Otte [Tue, 14 Jul 2015 16:02:48 +0000 (18:02 +0200)]
headerbar: Remove unused variables in private struct

10 years agotoolbar: Switch from get_path_for_child() to css node managing
Benjamin Otte [Sun, 12 Jul 2015 21:11:24 +0000 (23:11 +0200)]
toolbar: Switch from get_path_for_child() to css node managing

10 years agocssnode: Add gtk_css_node_reverse_children()
Benjamin Otte [Sun, 12 Jul 2015 21:11:11 +0000 (23:11 +0200)]
cssnode: Add gtk_css_node_reverse_children()

10 years agocssnode: Change API of some functions
Benjamin Otte [Sun, 12 Jul 2015 19:39:49 +0000 (21:39 +0200)]
cssnode: Change API of some functions

gtk_css_node_set_after/before() are now called
gtk_css_node_insert_after/before().

This brings them in line with other similar APIs (ie GtkListStore). And
it allows easier usage of the API (see changes to gtkbox.c).

10 years agofilechooserwidget: use places view to manage fixed devices
Georges Basile Stavracas Neto [Tue, 14 Jul 2015 17:48:49 +0000 (14:48 -0300)]
filechooserwidget: use places view to manage fixed devices

Previous patch modified places sidebar widget to stop handling
fixed devices by adding an "Other Locations..." item. Up to now,
however, these changes are isolated from each other since the
bundled file manager widgets ignore the sidebar requests for
external management of fixed devices and networks.

To fix that, make the file chooser widget be aware of the
GtkPlacesSidebar::show-other-locations signal and, when requested,
show places view to manage the fixed devices and networks.

https://bugzilla.gnome.org/show_bug.cgi?id=752034

10 years agoplacessidebar: add Other Locations item
Georges Basile Stavracas Neto [Tue, 14 Jul 2015 17:47:42 +0000 (14:47 -0300)]
placessidebar: add Other Locations item

Places sidebar is a widget that enabled the user to select
XDG directories, bookmarks and mounted network locations,
as well as manages permanent and removable devices.

The new design that aims to look less clutered makes the
sidebar display only removable devices, as well as mounted
networks, bookmarks and XDG directories, and delegates the
management of permanent devices such as hard drive partitions
to GtkPlacesView, a newly introduced widget for this specific
purpose.

To delegate it, add an "Other Locations..." item to notify
when the permanent devices manager is required. Besides that,
don't show these fixes devices on the sidebar itself, as they
are not supposed to be handled by the sidebar anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=752034

10 years agoplacesview: add view for fixed drives and networks
Georges Basile Stavracas Neto [Tue, 14 Jul 2015 17:45:37 +0000 (14:45 -0300)]
placesview: add view for fixed drives and networks

Places sidebar shows XDG directories, mounted and unmounted devices,
connected networks, bookmarks and actions like 'Connect to server'
and 'Insert location', which causes the sidebar to grow very quickly
and look cluttered. Because of that, new mockups for the sidebar try
to simplify it.

To make the sidebar simpler, the new mockups propose that it should
only handle connected networks and removable devices such as flash
drives and USB devices, and delegates other devices for external
widgets through the 'Other Locations' item.

To handle fixed devices and manage network connections, add a new
widget named GtkPlacesView, based on Nautilus mockups to keep
consistency between GNOME file management tools - in this case,
between Nautilus and the bundled Gtk's file chooser.

https://bugzilla.gnome.org/show_bug.cgi?id=752034

10 years agoRevert "x11: Query pointer devices' scroll valuators on toplevel enter events"
Carlos Garnacho [Wed, 15 Jul 2015 19:19:25 +0000 (21:19 +0200)]
Revert "x11: Query pointer devices' scroll valuators on toplevel enter events"

This reverts commit 77b8495bc4e51826afa451914d6a3b0df1b62a24.

The commit broke more scenarios than fixed, better to go back to square one.

10 years agoGdkDisplayX11: Properly translate server timestamps from _NET_WM_FRAME_* messages
Owen W. Taylor [Wed, 15 Jul 2015 16:38:38 +0000 (12:38 -0400)]
GdkDisplayX11: Properly translate server timestamps from _NET_WM_FRAME_* messages

When using frame times from _NET_WM_FRAME_DRAWN and _NET_WM_FRAME_TIMINGS, we
were treating them as local monotonic times, but they are actually extended-precision
versions of the server time, and need to be translated to monotonic times in the
case where the X server and client aren't running on the same system.

This fixes rendering stalls when using X over a remote ssh connection.
https://bugzilla.gnome.org/show_bug.cgi?id=741800